<%@ page language="java" pageEncoding="UTF-8"%>
<%@ taglib prefix="c" uri="http://java.sun.com/jsp/jstl/core"%>
<%@ taglib prefix="fmt" uri="http://java.sun.com/jsp/jstl/fmt"%>

<%@ page isELIgnored="false" %>

<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml" lang="zh-cn">
<head>
<title>搜 索</title>
<meta http-equiv="Content-Type" content="text/html; charset=gb2312" />
<meta http-equiv="Content-Language" content="gb2312" />
<link href="skin1/css/invite.css" type="text/css" rel="stylesheet" />
<link href="skin1/css/public.css" type="text/css" rel="stylesheet" />
<link href="skin1/css/header.css" type="text/css" rel="stylesheet" />
<script type='text/javascript' src='dwr/interface/ProvinceService.js'></script>
<script type='text/javascript' src='dwr/interface/CityService.js'></script>
<script type='text/javascript' src='dwr/interface/RegionService.js'></script>
<script type='text/javascript' src='dwr/util.js'></script>
<script type='text/javascript' src='dwr/engine.js'></script>
</head>
<body>
<div class=pageContent>
<jsp:include flush="true" page="../include/header.jsp"></jsp:include>

<div class=main>
<div class=mainLeft4>
  <div class="tp7 tp7n">
    <h3>热门搜索词</h3>
    <ul class="iv1">
      <li><a href="#">热门搜索词</a></li>
      <li><a href="#">热门搜索词</a></li>
      <li><a href="#">热门搜索词</a></li>
      <li><a href="#">热门搜索词</a></li>
      <li><a href="#">热门搜索词</a></li>
      <li><a href="#">热门搜索词</a></li>
    </ul>
  </div>
</div>
<div class=mainright4>
<div class="tp7 tp7n">
  <h3>基本搜索</h3>
  <div id="zl">
 	<div>请输入搜索的条件</div>
  		<form action="user.do" method="get">
  		<input type="hidden" name="method" value="simpleSearchResult"/>							
								
								
								<div>
									<label>性 别：</label><input type="radio" name="six" value="1"/>男<input type="radio" name="six" value="0"/>女<input type="radio" name="gender" value="2" checked="checked"/>全部
									
								</div>
								
								<div>
									<label>年 龄：</label>
										<select name="age">
											<option value="0">不限</option>
											<option value="1">15 以下</option>
											<option value="2">16～22</option>
											<option value="3">23～30</option>
											<option value="4">31～40</option>
											<option value="5">40以上</option>
										</select>
									
								</div>
								
								<div>
									<label>所在地区：</label>
										<select name="province" id="province" onchange="findCity();">
											<option value="0">省/市</option>
										</select>
										-
										<select name="city" id="city" onchange="findRegion();">
											<option value="0">市/地区</option>
										</select>
										-
										<select name="region" id="region">
											<option value="0">县/市</option>
										</select>
								</div>
								<div>
									<label>故 乡：</label>
										<select name="countryProCode" id="countryProCode" onchange="findCountryCity();">
											<option value="0">省/市</option>
										</select>
										-
										<select name="countryCityCode" id="countryCityCode" onchange="findCountryRegion();">
											<option value="0">市/地区</option>
										</select>
										-
										<select name="countryRegCode" id="countryRegCode">
											<option value="0">县/市</option>
										</select>
								</div>
								
								
								<div>
							      <label>&nbsp;</label>
							      <input type="submit" class="fmbule" value="搜 索" />
							    </div>
    			</form>
  </div>
  <div class="clear"></div>
</div>
</div>
</div>


<jsp:include flush="true" page="../include/footer.jsp"></jsp:include>

</div>
<script type="text/javascript">
		function findPro(){
			ProvinceService.findAll(backPro);
		}
		function backPro(data){
			DWRUtil.removeAllOptions("province");
			DWRUtil.addOptions("province",{'0':'请选择'});
			DWRUtil.addOptions("province", data, "code", "name");
		}
		function findCity(){
			var proValue=document.all.province.value;
			CityService.findByProvince(proValue,backCity); 
		}
		function backCity(data){
			DWRUtil.removeAllOptions("city");
			DWRUtil.removeAllOptions("region");
			DWRUtil.addOptions("city",{'0':'市/地区'});
			DWRUtil.addOptions("region",{'0':'县/市'});
			DWRUtil.addOptions("city", data, "code", "name");
		
		}
		function findRegion(){
			var cityVlaue=document.all.city.value;
			RegionService.findByCity(cityVlaue,backRegion);
		}
		function backRegion(data){
			DWRUtil.removeAllOptions("region");
			DWRUtil.addOptions("region",{'0':'县/市'});
			DWRUtil.addOptions("region", data, "code", "name");
		}
		
		
		function findCountryPro(){
			ProvinceService.findAll(backCountryPro);
		}
		function backCountryPro(data){
			DWRUtil.removeAllOptions("countryProCode");
			DWRUtil.addOptions("countryProCode",{'0':'请选择'});
			DWRUtil.addOptions("countryProCode", data, "code", "name");
		}
		function findCountryCity(){
			var proValue=document.all.province.value;
			CityService.findByProvince(proValue,backCountryCity); 
		}
		function backCountryCity(data){
			DWRUtil.removeAllOptions("countryCityCode");
			DWRUtil.removeAllOptions("countryRegCode");
			DWRUtil.addOptions("countryCityCode",{'0':'市/地区'});
			DWRUtil.addOptions("countryRegCode",{'0':'县/市'});
			DWRUtil.addOptions("countryCityCode", data, "code", "name");
		
		}
		function findCountryRegion(){
			var cityVlaue=document.all.city.value;
			RegionService.findByCity(cityVlaue,backCountryRegion);
		}
		function backCountryRegion(data){
			DWRUtil.removeAllOptions("countryRegCode");
			DWRUtil.addOptions("countryRegCode",{'0':'县/市'});
			DWRUtil.addOptions("countryRegCode", data, "code", "name");
		}
		
		
		findPro();
		findCountryPro();
		</script>
</body>
</html>
